æD /* Load an event table from a 'AEDF' resource. This of course will only be of use to applications using a general dispatch routine rather than doing a direct dispatch to a handler. */
æDT /* Load an event table from a 'AEDF' resource. This of course will only be of use to applications using a general dispatch routine rather than doing a direct dispatch to a handler. */
æD /* Create an event table with one memory manager call for the number of events specified. If more events are added to the table with AESetupEventTable, the table will be grown automatically. */
æDT /* Create an event table with one memory manager call for the number of events specified. If more events are added to the table with AESetupEventTable, the table will be grown automatically. */
char pad1; /*Str32's aligned on even word boundries.*/
Str32 typeStr;
char pad2;
Str32 zoneStr;
char pad3;
};
typedef struct EntityName EntityName;
typedef EntityName *EntityPtr;
/* Real definition of EntityName is 3 PACKED strings of any length (32 is just an example). No
offests for Asm since each String address must be calculated by adding length byte to last string ptr.
In Pascal, String(32) will be 34 bytes long since fields never start on an odd byte unless they are
only a byte long. So this will generate correct looking interfaces for Pascal and C, but they will not
be the same, which is OK since they are not used. */
æC \* Real definition of EntityName is 3 PACKED strings of any length (32 is just an
example). No offsets for Asm since each String address must be calculated by adding
length byte to last string ptr.
In Pascal, String(32) will be 34 bytes long since fields never start on an odd byte
unless they are only a byte long. So this will generate correct looking interfaces for
Pascal and C, but they will not be the same, which is OK since they are not used. */
æKY RetransType
æFc AppleTalk.h
æT struct
æD struct RetransType {
unsigned char retransInterval;
unsigned char retransCount;
};
typedef struct RetransType RetransType;
æC
æKY BDSElement
æFc AppleTalk.h
æT struct
æD struct BDSElement {
short buffSize;
Ptr buffPtr;
short dataSize;
long userBytes;
};
typedef struct BDSElement BDSElement;
typedef BDSElement BDSType[8];
typedef BDSType *BDSPtr;
æC
æKY ATLAPRec
ATLAPRecPtr
ATLAPRecHandle
æFc AppleTalk.h
æT struct
æD struct ATLAPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
LAPAdrBlock lapAddress;
short lapReqCount;
short lapActCount;
Ptr lapDataPtr;
};
typedef struct ATLAPRec ATLAPRec;
typedef ATLAPRec *ATLAPRecPtr, **ATLAPRecHandle;
æC
æKY ATDDPRec
ATDDPRecPtr
ATDDPRecHandle
æFc AppleTalk.h
æT struct
æD struct ATDDPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
short ddpType;
short ddpSocket;
AddrBlock ddpAddress;
short ddpReqCount;
short ddpActCount;
Ptr ddpDataPtr;
short ddpNodeID;
};
typedef struct ATDDPRec ATDDPRec;
typedef ATDDPRec *ATDDPRecPtr, **ATDDPRecHandle;
æC
æKY ATNBPRec
ATNBPRecPtr
ATNBPRecHandle
æFc AppleTalk.h
æT struct
æD struct ATNBPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
EntityPtr nbpEntityPtr;
Ptr nbpBufPtr;
short nbpBufSize;
short nbpDataField;
AddrBlock nbpAddress;
RetransType nbpRetransmitInfo;
};
typedef struct ATNBPRec ATNBPRec;
typedef ATNBPRec *ATNBPRecPtr, **ATNBPRecHandle;
æC
æKY ATATPRec
ATATPRecPtr
ATATPRecHandle
æFc AppleTalk.h
æT struct
æD struct ATATPRec {
ABCallType abOpcode;
short abResult;
long abUserReference;
short atpSocket;
AddrBlock atpAddress;
short atpReqCount;
Ptr atpDataPtr;
BDSPtr atpRspBDSPtr;
BitMapType atpBitMap;
short atpTransID;
short atpActCount;
long atpUserData;
Boolean atpXO;
Boolean atpEOM;
short atpTimeOut;
short atpRetries;
short atpNumBufs;
short atpNumRsp;
short atpBDSSize;
long atpRspUData;
Ptr atpRspBuf;
short atpRspSize;
};
typedef struct ATATPRec ATATPRec;
typedef ATATPRec *ATATPRecPtr, **ATATPRecHandle;
æC
æKY AFPCommandBlock
æFc AppleTalk.h
æT struct
æD typedef struct {
char cmdByte;
char startEndFlag;
short forkRefNum;
long rwOffset;
long reqCount;
char newLineFlag;
char newLineChar;
}AFPCommandBlock;
æC
æKY XPPPBHeader
æFc AppleTalk.h
æT struct
æD #define XPPPBHeader \
QElem *qLink;
short qType;
short ioTrap;
Ptr ioCmdAddr;
ProcPtr ioCompletion;
OSErr ioResult;
long cmdResult;
short ioVRefNum;
short ioRefNum;
short csCode;
æC
æKY XPPPrmBlk
æFc AppleTalk.h
æT struct
æD typedef struct {
XPPPBHeader
short sessRefnum; /*Offset to session refnum*/
char aspTimeout; /*Timeout for ATP*/
char aspRetry; /*Retry count for ATP*/
short cbSize; /*Command block size*/
Ptr cbPtr; /*Command block pointer*/
short rbSize; /*Reply buffer size*/
Ptr rbPtr; /*Reply buffer pointer*/
short wdSize; /*Write Data size*/
Ptr wdPtr; /*Write Data pointer*/
char ccbStart[296]; /*CCB memory allocated for driver afpWrite max size(CCB)=296 all other calls=150*/
}XPPPrmBlk;
æC
æKY AFPLoginPrm
æFc AppleTalk.h
æT struct
æD typedef struct {
XPPPBHeader
short sessRefnum; /*Offset to session refnum */
char aspTimeout; /*Timeout for ATP */
char aspRetry; /*Retry count for ATP */
short cbSize; /*Command block size */
Ptr cbPtr; /*Command block pointer */
short rbSize; /*Reply buffer size */
Ptr rbPtr; /*Reply buffer pointer */
AddrBlock afpAddrBlock; /*block in AFP login */
Ptr afpSCBPtr; /*SCB pointer in AFP login */
Ptr afpAttnRoutine; /*routine pointer in AFP login */
char ccbFill[144]; /*CCB memory allocated for driver Login needs only 150 bytes BUT CCB really starts in the middle of AFPSCBPtr and also clobbers AFPAttnRoutine. */
}AFPLoginPrm;
æC
æKY ASPOpenPrm
ASPOpenPrmPtr
æFc AppleTalk.h
æT struct
æD typedef struct {
XPPPBHeader
short sessRefnum; /*Offset to session refnum */
char aspTimeout; /*Timeout for ATP */
char aspRetry; /*Retry count for ATP */
AddrBlock serverAddr; /*Server address block */
Ptr scbPointer; /*SCB pointer */
Ptr attnRoutine; /*Attention routine pointer*/
}ASPOpenPrm;
typedef ASPOpenPrm *ASPOpenPrmPtr;
æC
æKY ASPAbortPrm
æFc AppleTalk.h
æT struct
æD typedef struct {
XPPPBHeader
Ptr abortSCBPtr; /*SCB pointer for AbortOS */
}ASPAbortPrm;
æC
æKY ASPGetparmsBlk
æFc AppleTalk.h
æT struct
æD typedef struct {
XPPPBHeader
short aspMaxCmdSize; /*For SPGetParms*/
short aspQuantumSize;
short numSesss;
}ASPGetparmsBlk;
æC
æKY WDSElement
æFc AppleTalk.h
æT struct
æD typedef struct {
short entryLength;
Ptr entryPtr;
}WDSElement;
æC
æKY NTElement
æFc AppleTalk.h
æT struct
æD typedef struct {
AddrBlock nteAddress; /*network address of entity*/
char filler;
char entityData[99]; /*Object, Type & Zone*/
}NTElement;
æC
æKY NamesTableEntry
æFc AppleTalk.h
æT struct
æD typedef struct {
Ptr qNext; /*ptr to next NTE*/
NTElement nt;
}NamesTableEntry;
æC
æKY MPPATPHeader
æFc AppleTalk.h
æT struct
æD #define MPPATPHeader \
QElem *qLink; /*next queue entry*/
short qType; /*queue type*/
short ioTrap; /*routine trap*/
Ptr ioCmdAddr; /*routine address*/
ProcPtr ioCompletion; /*completion routine*/
OSErr ioResult; /*result code*/
long userData; /*Command result (ATP user bytes)*/
short reqTID; /*request transaction ID*/
short ioRefNum; /*driver reference number*/
short csCode; /*Call command code*/
æC
æKY MPPparms
æFc AppleTalk.h
æT struct
æD typedef struct {
MPPATPHeader
}MPPparms;
æC
æKY LAPparms
æFc AppleTalk.h
æT struct
æD typedef struct {
MPPATPHeader
char protType; /*ALAP protocol Type */
char filler;
union {
Ptr wdsPointer; /*-> write data structure*/
Ptr handler; /*-> protocol handler routine*/
} LAPptrs;
}LAPparms;
æC
æKY DDPparms
æFc AppleTalk.h
æT struct
æD typedef struct {
MPPATPHeader
char socket; /*socket number */
char checksumFlag; /*check sum flag */
union {
Ptr wdsPointer; /*-> write data structure*/
Ptr listener; /*->write data structure or -> Listener*/
} DDPptrs;
}DDPparms;
æC
æKY NBPparms
æFc AppleTalk.h
æT struct
æD typedef struct {
MPPATPHeader
char interval; /*retry interval */
char count; /*retry count */
union {
Ptr ntQElPtr;
Ptr entityPtr;
} NBPPtrs;
union {
char verifyFlag;
struct {
Ptr retBuffPtr;
short retBuffSize;
short maxToGet;
short numGotten;
} Lookup;
struct {
AddrBlock confirmAddr;
char newSocket;
} Confirm;
} parm;
}NBPparms;
æC
æKY SetSelfparms
æFc AppleTalk.h
æT struct
æD typedef struct {
MPPATPHeader
char newSelfFlag; /*self-send toggle flag */
char oldSelfFlag; /*previous self-send state */
}SetSelfparms;
æC
æKY NBPKillparms
æFc AppleTalk.h
æT struct
æD typedef struct {
MPPATPHeader
Ptr nKillQEl; /*ptr to i/o queue element to cancel */
}NBPKillparms;
æC
æKY MPPParamBlock
MPPPBPtr
æFc AppleTalk.h
æT struct
æD typedef union {
MPPparms MPP; /*General MPP parms*/
LAPparms LAP; /*ALAP calls*/
DDPparms DDP; /*DDP calls*/
NBPparms NBP; /*NBP calls*/
SetSelfparms SETSELF ;
NBPKillparms NBPKILL ;
}MPPParamBlock;
typedef MPPParamBlock *MPPPBPtr;
æC
æKY MOREATPHeader
æFc AppleTalk.h
æT struct
æD #define MOREATPHeader \
char atpSocket; /*currbitmap for requests or ATP socket number*/
æD #define CurApRefNum 0x900 /*[GLOBAL VAR] Reference number of current application's resource file (word)
refNum of application's resFile [word]*/
æC
æKY CurrentA5
æFc SysEqu.h
æT #define
æD #define CurrentA5 0x904 /*[GLOBAL VAR] Address of boundary between application globals and application parameters
current value of A5 [pointer]*/
æC
æKY CurStackBase
æFc SysEqu.h
æT #define
æD #define CurStackBase 0x908 /*[GLOBAL VAR] Address of base of stack; start of application globals
current stack base [pointer]*/
æC
æKY CurApName
æFc SysEqu.h
æT #define
æD #define CurApName 0x910 /*[GLOBAL VAR] Name of current application (length byte followed by up to 31 characters)
name of application [STRING[31]]*/
æC
æKY LoadTrap
æFc SysEqu.h
æT #define
æD #define LoadTrap 0x12D /*[GLOBAL VAR] trap before launch? [byte]*/
æC
æKY SegHiEnable
æFc SysEqu.h
æT #define
æD #define SegHiEnable 0xBB2 /*[GLOBAL VAR] (byte) 0 to disable MoveHHi in LoadSeg*/
æC
æKY WindowList
æFc SysEqu.h
æT #define
æD
/* Window Manager Globals */
#define WindowList 0x9D6 /*[GLOBAL VAR] Pointer to first window in window list; 0 if using events but not windows
Z-ordered linked list of windows [pointer]*/
æC
æKY PaintWhite
æFc SysEqu.h
æT #define
æD #define PaintWhite 0x9DC /*[GLOBAL VAR] Flag for whether to paint window white before update event (word)
erase newly drawn windows? [word]*/
æC
æKY WMgrPort
æFc SysEqu.h
æT #define
æD #define WMgrPort 0x9DE /*[GLOBAL VAR] Pointer to Window Manager port
window manager's grafport [pointer]*/
æC
æKY GrayRgn
æFc SysEqu.h
æT #define
æD #define GrayRgn 0x9EE /*[GLOBAL VAR] Handle to region drawn as desktop
rounded gray desk region [handle]*/
æC
æKY CurActivate
æFc SysEqu.h
æT #define
æD #define CurActivate 0xA64 /*[GLOBAL VAR] Pointer to window to receive activate event
window slated for activate event [pointer]*/
æC
æKY CurDeactive
æFc SysEqu.h
æT #define
æD #define CurDeactive 0xA68 /*[GLOBAL VAR] Pointer to window to receive deactivate event
window slated for deactivate event [pointer]*/
æC
æKY DragHook
æFc SysEqu.h
æT #define
æD #define DragHook 0x9F6 /*[GLOBAL VAR] Address of procedure to execute during TrackGoAway, DragWindow, GrowWindow, DragGrayRgn, TrackControl, and DragControl
user hook during dragging [pointer]*/
æC
æKY DeskPattern
æFc SysEqu.h
æT #define
æD #define DeskPattern 0xA3C /*[GLOBAL VAR] Pattern with which desktop is painted (8 bytes)
desk pattern [8 bytes]*/
æC
æKY DeskHook
æFc SysEqu.h
æT #define
æD #define DeskHook 0xA6C /*[GLOBAL VAR] Address of procedure for painting desktop or responding to clicks on desktop
hook for painting the desk [pointer]*/
æC
æKY GhostWindow
æFc SysEqu.h
æT #define
æD #define GhostWindow 0xA84 /*[GLOBAL VAR] Pointer to window never to be considered frontmost
window hidden from FrontWindow [pointer]*/
æC
æKY TEDoText
æFc SysEqu.h
æT #define
æD
/* Text Edit Globals */
#define TEDoText 0xA70 /*[GLOBAL VAR] Address of TextEdit multi-purpose routine